//边框定义样式类
import 'package:flutter/material.dart';

class DecorationUtil{

  /*
   * 边框组件:实现灰色边框
   */
  static Decoration buildBoxGrayBorder() {
    return BoxDecoration(
      border: new Border.all(color: Color(0xFFFF0000), width: 0.5), // 边色与边宽度
      color: Color(0xffffff), // 底色
      //        borderRadius: new BorderRadius.circular((20.0)), // 圆角度
      borderRadius: new BorderRadius.vertical(
          top: Radius.elliptical(3, 3),
          bottom: Radius.elliptical(3, 3),), // 也可控件一边圆角大小
    );
  }


}